<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style>
            label{
                display: block;
            }
        </style>
    </head>
    <body>
        <div>CRUD</div>
        <div><?php echo anchor('upuz','home'); ?></div>
        <?php echo form_open('upuz/update'); ?>
            <?php foreach($results['results'] as $result):?>
                <?php foreach($results['fields'] as $field): ?>
                    <?php echo '<p>'.form_label($field); ?>
                    <?php echo form_input($field,  set_value($field,$result->$field)).'</p>'; ?>
                <?php endforeach; ?>
            <?php endforeach; ?>
        <?php echo form_submit('submit', 'Save'); ?>
        <?php form_close(); ?>
    </body>
</html>
